/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.Collection;
import java.util.TreeSet;

/**
 *
 * @author bkosson
 */
public class Spe implements Comparable <Spe>{
    private String nomSpe;
    private Collection<Med> lesMeds = new TreeSet<Med>();

    public Spe(String nomSpe) {
        this.nomSpe = nomSpe;
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }

    public String getNomSpe() {
        return nomSpe;
    }

    @Override
    public int compareTo(Spe t) {
        return nomSpe.compareTo(t.nomSpe);
    }

    void addUnMed(Med unMed) {
        lesMeds.add(unMed);
    }
    
    
}